import { ImageShare } from "../type/entity";
import { http } from "../util/http";


export function saveImageShare(categoryId:number){
  return http.post<ImageShare>('/saveImageShare', {categoryId})
}

export function removeImageShare(id:string){
  return http.post<{success:boolean}>('/removeImageShare', {id})
}

export function getImageShareList(categoryId:number){
  return http.post<ImageShare[]>('/getImageShareList', {categoryId})
}